# -*- coding:UTF-8 -*-



create_user_schema = {
    "username": {"type": str, "required": True},
    "name": {"type": str, "required": True},
    "mobile": {"type": str, "required": True},
    "email": {"type": str, "required": False},
    "password": {"type": str, "required": True},
    "password2": {"type": str, "required": True},
    # "position": {"type": int, "required": True},
    # "job": {"type": str, "required": True},
}

change_password_schema = {
    "old_password": {"type": str, "required": True},
    "new_password": {"type": str, "required": True},
    "new_password2": {"type": str, "required": True}
}

login_schema = {
    "username": {"type": str, "required": True},
    "password": {"type": str, "required": True},
}

forget_password_schema = {
    "username": {"type": str, "required": True},
    "email": {"type": str, "required": True},
}

create_manager_schema = {
    "username": {"type": str, "required": True},
}

create_department_schema = {
    "name": {"type": str, "required": True},
    "department_manager": {"type": str, "required": False},
}

delete_department_schema = {
    "department_id": {"type": int, "required": True},
}

update_department_schema = {
    "department_id": {"type": int, "required": True},
    "name": {"type": str, "required": True},
    "department_manager": {"type": str, "required": True},
}

get_department_staff_schema = {
    "department_id": {"type": int, "required": True},
}

add_user_to_department_schema = {
    "user_id": {"type": int, "required": True},
    "department_id": {"type": int, "required": True},
}

delete_user_from_department_schema = {
    "user_id": {"type": int, "required": True},
    "department_id": {"type": int, "required": True},
}

update_user_of_department_schema = {
    "user_id": {"type": int, "required": True},
    "department_id": {"type": int, "required": True},
}

create_work_schema = {
    "name": {"type": str, "required": True},
    "type": {"type": int, "required": True},
    "agreement_code": {"type": str, "required": True},
    "brand_name": {"type": str, "required": True},
    "contact_name": {"type": str, "required": True},
    "contact_phone": {"type": str, "required": True},
    "area": {"type": str, "required": True},
    "total": {"type": int, "required": True},

}

create_tasks_schema = {
    "code": {"type": list, "required": True},
    "diedline": {"type": str, "required": True},
}

distribute_task_schema = {
    "task_list": {"type": list, "required": True},
    "user_id": {"type": int, "required": True}
}

finished_task_schema = {
    # "user_id": {"type": int, "required": True},
    "task_id": {"type": int, "required": True}
}

check_task_schema = {
    "check_flag": {"type": int, "required": True},
    "task_list": {"type": list, "required": True}
}

create_checking_task_schema = {
    "task_list": {"type": list, "required": True}
}

create_books_schema = {
    "passcode": {"type": str, "required": True}
}

get_not_back_books_schema = {
    "work_name": {"type": str, "required": True}
}

shooting_finished_schema = {
    "code": {"type": str, "required": True}
}